<?php
$salt=fetch_salt();
?>
<?php foreach ($this->action_list AS $key => $val) { ?>
<ul class="contxt_List">
  <li>
    <h4 class="titH4"> <a href="question/<?php echo $val['question_id']; ?>"><?php echo $val['question_content']; ?></a></h4>
    <p class="solutions clr"><a href="people/<?php echo $val['answer_info']['user_info']['user_name']; ?>" rel="<?php echo $val['answer_info']['user_info']['uid']; ?>" onmouseover="eventsMouseM(this);"><?php echo $val['answer_info']['user_info']['user_name']; ?></a> 回复了该问题&nbsp; • <?php echo $val['answer_count']; ?>&nbsp;个回复 &nbsp;•
<a href="javscript:;" class="gxz_b" onclick="focus_question($(this), $(this), <?php echo $val['question_id']; ?>); return false;" title="<?php if ($val['has_focus']) { ?>取消<?php } ?>关注"><?php if ($val['has_focus']) { ?>取消<?php } ?>关注</a>
	</p>
  
  


  
    
<!-- 回复开始	 -->
<?php if ($val['answer_info']['answer_content']) { ?>

    <div class="default_txt">
    <p class="default_JF_ri">

	<?php if ($this->user_id) { ?>
    <a name="<?php echo $val['answer_info']['answer_id']; ?>" status="<?php echo $val['answer_info']['agree_status']; ?>"></a>
	  <a href="javascript:;" class="default_num" onClick="agree_show($(this))" title="投一票" alt="投一票"><?php echo $val['answer_info']['agree_count']; ?></a>
	  
	<a title="<?php if($val['answer_info']['agree_status'] == '1'){ ?>取消投票<?php }else{ ?>投一票<?php } ?>"  alt="<?php if($val['answer_info']['agree_status'] == '1'){ ?>取消投票<?php }else{ ?>投一票<?php } ?>" class="default_num defa_agree<?php if($val['answer_info']['agree_status'] == '1'){ ?> up_cur<?php } ?>" onClick="change_agree($(this), '1')" style="display:none;" href="javascript:;">赞同 </a><span name="agree_num" class="agree_num" style="display:none;"><?php echo $val['answer_info']['agree_count']; ?></span>
	<a title="<?php if($val['answer_info']['agree_status'] == '-1'){ ?>取消反对<?php }else{ ?>反对，不会显示你的姓名<?php } ?>" alt="<?php if($val['answer_info']['agree_status'] == '-1'){ ?>取消反对<?php }else{ ?>反对，不会显示你的姓名<?php } ?>" class="default_num defa_oppose<?php if($val['answer_info']['agree_status'] == '-1'){ ?> down_cur<?php } ?>" onClick="change_agree($(this), '-1')" style="display:none;" href="javascript:;">反对</a>
	<?php } else { ?>
			<a name="<?php echo $val['answer_id']; ?>" status="<?php echo $val['agree_status']; ?>"></a> <a title="" class="default_num defa_agree prohibit_up" href="javascript:;">赞同 </a> <span name="agree_num" class="agree_num"><?php echo $val['agree_count']; ?></span> <a title=" " class="default_num defa_oppose prohibit_down " href="javascript:;">反对</a>
	<?php } ?>	
	</p>
	  <h3 class="default_uh"><a href="people/<?php echo $val['answer_info']['user_info']['user_name']; ?>" rel="<?php echo $val['answer_info']['user_info']['uid']; ?>" onmouseover="eventsMouseM(this);" class="default_ubd"><?php echo $val['answer_info']['user_info']['user_name']; ?></a> <?php if($val['answer_info']['user_info']['signature']){echo "，".$val['answer_info']['user_info']['signature'];} ?></h3>

<p class="default_ticket" name="agree_user_list" style="display:none;">
	赞同来自&nbsp;
	<span class="agee_people">
		<?php if($val['answer_info']['agree_count'] > 0){ ?>
			<?php $count = 0;
			
			foreach($val['answer_info']['agree_users'] as $uid => $user){ ?>
				<a href="people/<?php echo $user;?>" rel="<?php echo $uid;?>" onmouseover="eventsMouseM(this);" name="agee_people" class="a"><?php echo $user;?></a><?php if(count($val['answer_info']['agree_users']) != ++$count) { ?>、<?php } ?>
			<?php } ?>
		<?php } ?>
	</span>
</p>

      <p class="infotx">
<div id="q_min_<?php echo $val['question_id'];?>"> 	
	  <?php echo nl2br(cjk_substr($val['answer_info']['answer_content'],130)); ?>
        <?php if  (cjk_strlen($val['answer_info']['answer_content'])>130): ?>
        <a href="javascript:void(0);" class="showMore" onclick="content_switcher($('#q_min_<?php echo $val['question_id'];?>'), $('#q_max_<?php echo $val['question_id'];?>')); return false;">显示全部 »</a>
        <?php endif;?>
</div>

<div  style="display:none" id="q_max_<?php echo $val['question_id'];?>">
<?php echo nl2br($val['answer_info']['answer_content']); ?>
</div>	
		</p>
		
		 <p class="default_ticket"><?php echo date_friendly($val['answer_info']['add_time']); ?>&nbsp;&nbsp;•<a href="question/<?php echo $val['question_id']; ?>#answers"><?php echo $val['answer_info']['comment_count']; ?>条评论</a></p>
    </div>
  
<?php } ?>
<!-- 回复-结束 --> 	





	
	
  </li>
  
    <li class="userFace"><a href="people/<?php echo $val['answer_info']['user_info']['user_name']; ?>"><img src="<?php echo get_avatar_url($val['answer_info']['user_info']['uid'],'mid',$val['answer_info']['user_info']['avatar_file']); ?>" title="" alt="<?php echo $val['answer_info']['user_info']['user_name']; ?>" onMouseOver="eventsMouseM(this);"  rel="<?php echo $val['answer_info']['user_info']['uid'];?>"/></a></li>
  </ul>
<?php }  ?>


